# Contributor: Paul Kilar <pkilar@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=scapy
pkgver=2.5.0
pkgrel=1
pkgdesc="Powerful interactive packet manipulation"
url="https://scapy.net/"
arch="noarch"
license="GPL-2.0-only"
depends="python3"
makedepends="python3-dev py3-setuptools"
install="$pkgname.post-install"
subpackages="$pkgname-doc $pkgname-pyc"
source="$pkgname-$pkgver-2.tar.gz::https://github.com/secdev/scapy/archive/v$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
4e5cacff0bbf6fd991ea24f4680049d042082fae4b349c8082078e6f01b38c09bb5c8276bfba15d4a88a1eb5af92c505848ec98556b10eecbd803f134a5b244a  scapy-2.5.0-2.tar.gz
"
